import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: Станислав
 * Date: 20.02.14
 * Time: 15:14
 * To change this template use File | Settings | File Templates.
 */
public class FrameCalc extends JFrame {
    FrameCalc(){
        JFrame calc = new JFrame("Калькулятор");
        calc.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        calc.setSize(250,400);

        JPanel mainPanel = new JPanel();

        JPanel northPanel = new JPanel();
        JTextField vvodShow = new JTextField(10);
        JButton eq = new JButton("=");
        JTextField result = new JTextField(5);
        northPanel.add(vvodShow, BorderLayout.WEST);
        northPanel.add(eq,BorderLayout.CENTER);
        northPanel.add(result,BorderLayout.EAST);
        mainPanel.add(northPanel,BorderLayout.NORTH);

        calc.add(mainPanel);
        calc.setVisible(true);

    }
}
